package com.service;

import java.util.List;
import java.util.Map;

import com.beans.User;
import org.apache.ibatis.annotations.Mapper;
import com.beans.Chapter;

@Mapper
public interface ChapterService {
    int addChapter(Chapter user);

    Integer updateChapter(Chapter user);

    int deleteChapter(int id);

    List<Chapter> getAllChapter();

    List<Chapter> getChapter(String novelname);

    Chapter getChapterId(int chapterid, String novelname);

    Chapter getChapterById(int id);


    Map<String,Object> queryByPage(Chapter chapter, Integer page, Integer limit);
}

